<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<h:form id="prioritizationToDoForm">
		<p:dataTable currentPageReportTemplate="{currentPage} #{msgs.of} {totalPages}" emptyMessage="#{msgs.emptyDataTableMessage}" id="prioritizationToDoTable" paginator="true" paginatorAlwaysVisible="false" paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport}{PageLinks}{NextPageLink} {LastPageLink}" rows="5" rowsPerPageTemplate="5,10,20,50" value="#{source}" var="prioritization">
			<p:column headerText="#{msgs.project}" sortBy="#{prioritization.project.name}" styleClass="center">
				<h:outputText value="#{prioritization.project.name}"/>
			</p:column>
			<p:column headerText="#{msgs.version}" sortBy="#{prioritization.version.name}" styleClass="center">
				<h:outputText value="#{prioritization.version.name}"/>
			</p:column>
			<p:column headerText="#{msgs.criterion}" sortBy="#{prioritization.criterionType}" styleClass="center">
				<h:outputText value="#{prioritization.criterionTypeTranslation}" />
			</p:column>
			<p:column headerText="#{msgs.actions}" styleClass="center">
				<p:commandButton action="#{analyticalPrioritizationController.onAnalyticalPrioritization}" alt="#{msgs.prioritize}" image="ui-icon ui-icon-calculator" process="@this" title="#{msgs.prioritize}">
					<f:setPropertyActionListener target="#{analyticalPrioritizationController.currentPrioritization}" value="#{prioritization}" />
				</p:commandButton>
			</p:column>
		</p:dataTable>
	</h:form>
</ui:composition>